package com.jie.server.mvc.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 单聊表
 * </p>
 *
 * @author XieZhiJie
 * @since 2022-04-24
 */
@Getter
@Setter
@TableName("single_chat")
public class SingleChat implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 发送信息的用户id
     */
    @TableField("send_user_id")
    private Integer sendUserId;

    /**
     * 接收信息的用户id
     */
    @TableField("receive_user_id")
    private Integer receiveUserId;

    /**
     * 发送的信息
     */
    @TableField("chat_message")
    private String chatMessage;

    /**
     * 发送时间
     */
    @TableField("send_time")
    private LocalDateTime sendTime;

    /**
     * 发送信息的用户的当时的标识
     */
    @TableField("send_user_ident")
    private String sendUserIdent;

}
